import {
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Swipe,
    SwipeItem,
    Loading,
    Image as VanImage,
    Tab, Tabs,
    Icon,
    List,
    Lazyload,
    ImagePreview,
    Badge ,
    Divider,
    Cell, CellGroup,
    ActionBar, ActionBarIcon, ActionBarButton ,
    Sidebar, SidebarItem ,
    SubmitBar ,
    Checkbox, CheckboxGroup,
    Card,
    Empty,
    SwipeCell  ,
    Tag,
    Popup ,
} from 'vant';

export function vant(app) {
    app.use(Popup);
    app.use(Tag);
    app.use(SwipeCell);
    app.use(Empty);
    app.use(Card);
    app.use(Checkbox);
    app.use(CheckboxGroup);
    app.use(SubmitBar);
    app.use(SidebarItem);
    app.use(Sidebar);
    app.use(ActionBarButton);
    app.use(ActionBarIcon);
    app.use(ActionBar);
    app.use(CellGroup);
    app.use(Cell);
    app.use(Divider);
    app.use(ImagePreview);
    app.use(Badge);
    app.use(Lazyload);
    app.use(List);
    app.use(Icon);
    app.use(Tab);
    app.use(Tabs);
    app.use(VanImage);
    app.use(Loading);
    app.use(Swipe);
    app.use(SwipeItem);
    app.use(NavBar);
    app.use(Button);
    app.use(Tabbar);
    app.use(TabbarItem);
}
export default {
    components: {
        [ImagePreview.Component.name]: ImagePreview.Component,
    },
};